﻿<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" default-access="property" default-lazy="true" namespace="Cms.Domain" assembly="Cms.Domain">
  <class name="ContentTranslation" table="cmsContentTranslation">
    <cache usage="read-write" />
    <id name="ID" type="System.Int32" unsaved-value="0">
      <column name="ID" />
      <generator class="identity" />
    </id>
    <bag cascade="all-delete-orphan" inverse="true" name="Versions" table="cmsContentTranslationVersion" mutable="true">
      <cache usage="read-write" />
      <key>
        <column name="TranslationID" />
      </key>
      <one-to-many class="ContentTranslationVersion" />
    </bag>
    <many-to-one class="Content" name="Content">
      <column name="ContentID" not-null="true" />
    </many-to-one>
    <many-to-one class="Locale" name="Locale">
      <column name="LocaleID" not-null="true" />
    </many-to-one>
    <many-to-one class="ContentTranslationVersion" name="PublishedVersion">
      <column name="PublishedVersionID" />
    </many-to-one>
    <property name="FirstPublished" type="System.Nullable`1[[System.DateTime, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
      <column name="FirstPublished" not-null="false" />
    </property>
    <property name="LatestPublished" type="System.Nullable`1[[System.DateTime, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
      <column name="LatestPublished" not-null="false" />
    </property>
  </class>
</hibernate-mapping>